package com.dd.demo.day4;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;

public class update {
    public static void main(String[] args) {
        try {
            Class.forName("com.mysql.cj.jdbc.Driver");
            Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/future_community","root","cc65152801");
            Statement sql = con.createStatement();
            String new_member="update property_label set label_id='1'where label_id=123456789987654321";
            sql.executeUpdate(new_member);
            con.close();
        }
        catch(SQLException | ClassNotFoundException e) {
            e.printStackTrace();
            System.out.println("SQL异常！！！！");
        }

}}
